package com.infotel.tchoutchou;

public class ReseauFerre {

    /**
     * @param args
     */
    public static void main(String[] args) {
        Troncon troncon4 = new Troncon("4", 72, null);
        Troncon troncon3 = new Troncon("3", 123, troncon4);
        Troncon troncon2 = new Troncon("2", 98, troncon3);
        Troncon troncon1 = new Troncon("1", 100, troncon3);
        final Train trainA = new Train("A", 50, troncon1);
        final Train trainB = new Train("B", 50, troncon2);
        ThreadTrain threadTrainA = new ThreadTrain(trainA);
        ThreadTrain threadTrainB = new ThreadTrain(trainB);
        threadTrainA.start();
        threadTrainB.start();
    }

}
